package com.cpecc.manager.system;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cpecc.dao.system.RoleDao;
import com.cpecc.model.system.Role;

@Service
@Transactional
public class RoleManager {

	@Autowired
	private RoleDao roleDao;
	
	public List<Role> getDepRoleList(){
		return roleDao.getDepRoleList();
	}
	
	public List<Role> getUserRoleList(){
		return roleDao.getUserRoleList();
	}
	
	public Role get(String id){
		return roleDao.get(id);
	}
}
